import request from '@/utils/request'

export function getQualityList(query) {
  return request({
    url: '/knowledge/quality/getList',
    method: 'post',
    data: query
  })
}

export function getQualityDetail(id) {
  return request({
    url: '/knowledge/quality/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByQualityID(id) {
  return request({
    url: '/knowledge/quality/change-status',
    method: 'post',
    data: id
  })
}

export function saveQuality(formdata) {
  return request({
    url: '/knowledge/quality/save',
    method: 'post',
    data: formdata
  })
}

export function deleteQualityByID(id) {
  return request({
    url: '/knowledge/quality/delete',
    method: 'post',
    data: id
  })
}
export function removeQualityByID(id) {
  return request({
    url: '/knowledge/quality/remove',
    method: 'post',
    data: id
  })
}

export function getQualityAvabile() {
  return request({
    url: '/knowledge/quality/getAvailable',
    method: 'post'
  })
}
